<template>
	<view>
		<u-navbar :border-bottom='false' back-icon-size='50'>
			<view class="slot-wrap">
				<image class="icon" src="../../../../static/imgs/sousuohui@3x.png" mode=""></image>
				<input type="text" v-model="keyword" placeholder="城市/区域/地质/酒店名" placeholder-style="color:#AAAAAA;font-size:28rpx"
				 confirm-type="search" @confirm="searchFn" @change='changeFn' />
			</view>
		</u-navbar>
		<view class="container">
			<view class="laction">
				<view class="lable">
					当前位置
				</view>
				<view class="lact-detail">
					<view class="left">
						<view class="text1">
							<u-icon name="map-fill" color="#2979ff" size="32"></u-icon>
							江西外贸大厦
						</view>
						<view class="text2">
							广东省深圳市福田区富强路
						</view>
					</view>
					<view class="right">
						<u-icon name="checkmark" color="#2979ff" size="32"></u-icon>
					</view>
				</view>
				<view class="recom">
					<view class="recom-li">
							深圳
					</view>
					<view class="recom-li">
							南山区
					</view>
					<view class="recom-li">
							福田区
					</view>
					<view class="recom-li" style="font-size: 20rpx;">
							宝安国际机场
					</view>
					<view class="recom-li" style="font-size: 20rpx;">
							深圳会展中心
					</view>
					<view class="recom-li">
						 深圳北站
					</view>
				</view>
				
			</view>
			<view class="hotCity">
				<view class="lable">
					国内热门城市
				</view>
				<view class="city-ul">
					<view class="city-li">
						深圳
					</view>
					<view class="city-li">
						长沙
					</view>
					<view class="city-li">
						三亚
					</view>
					<view class="city-li">
						上海
					</view>
					<view class="city-li">
						苏州
					</view>
					<view class="city-li">
						云南
					</view>
					<view class="city-li">
						大理
					</view>
				</view>
			</view>
			<view class="letter">
				<view class="lable">
					字母索引
				</view>
				<view class="letter-ul">
					<view class="letter-li" v-for="(item,index) in letter" :key='index'>
						{{item}}
					</view>
				</view>
			</view>
			<view class="letter-index">
				<!-- 字母索引 -->
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data(){
			return {
				letter:[
					'A','B','C','D','E','F','G','H','J','K','L','M','N','P','Q','R','S','T','W','X','Y','Z'
				]
			}
		}
	}
</script>

<style>
	page {
		background-color: #FFFFFF;
	}
</style>
<style lang="scss" scoped>
	.slot-wrap {
		margin-left: 30rpx;
		width: 582rpx;
		height: 64rpx;
		background: #EEEEEE;
		border-radius: 18px;
		display: flex;
		align-items: center;
		padding-left: 36rpx;

		.icon {
			width: 32rpx;
			height: 32rpx;
			margin-right: 16rpx;
		}
	}

	.container {
		padding: 0 28rpx;
		.laction {
			margin-top: 30rpx;

			.lable {
				font-size: 28rpx;
				font-family: Segoe UI;
				font-weight: bold;
				color: #333333;
			}

			.lact-detail {
				margin-top: 10rpx;
				display: flex;
				align-items: center;
				justify-content: space-between;

				.left {
					.text1 {
						margin-left: 4rpx;
						font-size: 32rpx;
						font-family: Segoe UI;
						font-weight: 400;
						color: #3587F7;
					}

					.text2 {
						margin-top: 8rpx;
						padding-left: 36rpx;
						font-size: 24rpx;
						font-family: Segoe UI;
						font-weight: 400;
						color: #999999;
					}
				}

			}
		
			.recom {
				display: flex;
				flex-wrap: wrap;
				align-items: center;
				margin-top: 36rpx;
				.recom-li {
					margin-bottom: 12rpx;
					width: 164rpx;
					height: 68rpx;
					text-align: center;
					font-size: 28rpx;
					line-height: 68rpx;
					background: #F8F8F8;
					border-radius: 4rpx;
					&:nth-child(4n-2) {
						margin-left: 12rpx;
						margin-right: 12rpx;
					}
					&:nth-child(4n-1) {
						margin-right: 14rpx;
					}
				}
			}
		}
		.hotCity {
			margin-top: 36rpx;
			.lable {
				font-size: 28rpx;
				font-family: Segoe UI;
				font-weight: bold;
				color: #333333;
			}
			.city-ul {
				margin-top: 20rpx;
				display: flex;
				flex-wrap: wrap;
				align-items: center;
				.city-li {
					margin-bottom: 12rpx;
					width: 164rpx;
					height: 68rpx;
					background: #F8F8F8;
					border-radius: 4rpx;
					text-align: center;
					line-height: 68rpx;
					&:nth-child(4n-2) {
						margin-left: 12rpx;
						margin-right: 12rpx;
					}
					&:nth-child(4n-1) {
						margin-right: 14rpx;
					}
				}
			}
		}
		.letter {
			margin-top: 36rpx;
			.lable {
				font-size: 28rpx;
				font-family: Segoe UI;
				font-weight: bold;
				color: #333333;
			}
			.letter-ul {
				margin-top: 20rpx;
				display: flex;
				flex-wrap: wrap;
				.letter-li {
					width: 68rpx;
					height: 64rpx;
					background: #F8F8F8;
					border-radius: 8rpx;
					text-align: center;
					line-height: 64rpx;
					font-size: 28rpx;
					font-family: Segoe UI;
					font-weight: 400;
					color: #333333;
					margin-right: 20rpx;
					margin-bottom: 16rpx;
					&:nth-child(8n) {
						margin-right: 0rpx;
					}
				}
			}
		}
		.letter-index {
			
		}
	}
</style>
